

const DB = require('../db');


const db = new DB().connection();

const blogConfig = db.collection('blogConfig')


function update(conditions,data){
    blogConfig.updateOne(conditions, {$set:data},(err,res)=>{
        if(err) throw err;
        console.log('更新成功')
    })
}